package com.bea.ftd.common;

import com.bea.ftd.common.enums.ValidationErrorCode;

public class ValidationException extends Exception {

	private static final long serialVersionUID = -2445909541062589900L;

	private ValidationErrorCode errorCode;
	private String errorMessage;

	public ValidationException(ValidationErrorCode errorCode, String errorMessage) {
		super();
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}

	public ValidationErrorCode getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(ValidationErrorCode errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	@Override
	public String toString() {
		return "ValiationException [errorCode=" + errorCode + ", errorMessage=" + errorMessage + "]";
	}

}
